
package com.card.log;

public enum LogType {
	CMJ(1,"创建麻将房间"),
	CDDZ(2,"创建斗地主房间"),
	CNN(3,"创建牛牛房间"),
	CZJH(4,"创建拼三张房间"),
	CMMJ(5,"报名麻将比赛"),
	CMDDZ(6,"报名斗地主比赛"),
	
	GMFK(7,"购买房卡,出售人:"),
	BindCard(8,"绑定身份证"),
	
	Share1(9,"分享好友圈"),
	Share2(10,"分享朋友圈"),
	Share3(11,"分享二维码"),
	Init(12,"初始房卡"),
	
	CMMJ2(13,"取消麻将比赛"),
	CMDDZ2(14,"取消斗地主比赛"),
	
	BMNN(15,"创建牛牛房间"),
	CBMNN(16,"报名牛牛比赛"),
	
	BMZJH(15,"创建炸金花房间"),
	CBMZJH(16,"报名炸金花比赛"),
	QXZJH(17,"取消炸金花比赛"),
	QXNN(18,"取消牛牛比赛"),
	CPDK(20,"创建跑得快房间"),
	CMPDK(21,"报名跑得快比赛"),
	CMPDK2(22,"报名跑得快比赛")
	;
	
	private LogType(int type,String desc){
		this.type = type;
		this.desc = desc;
	}
	
	private int type;
	
	private String desc;

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public static LogType getLogType(int type) {
		for (LogType t : LogType.values()) {
			if(t.getType() == type) {
				return t;
			}
		}
		return null;
	}
}

